/* __auth__ : KunLin */

package com.cskaoyan.bean.vo.goods;

import com.cskaoyan.bean.Goods;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class GoodsListVO {

    private GoodsListData data;
    private String errmsg;
    private Integer errno;

    public GoodsListVO success() {
        this.setErrno(0);
        this.setErrmsg("成功");
        return this;
    }

    @Data
    public static class GoodsListData {
        private Integer limit;
        private List<Goods> list;
        private Integer page;
        private Integer pages;
        private Integer total;
    }

    @Data
    public static class GoodsListDataList {
        private Date addTime;
        private Integer brandId;
        private String brief;
        private Integer categoryId;
        private BigDecimal counterPrice;
        private Boolean deleted;
        private String detail;
        private String[] gallery;
        private String goodsSn;
        private Integer id;
        private Boolean isHot;
        private Boolean isNew;
        private Boolean isOnSale;
        private String keywords;
        private String name;
        private String picUrl;
        private BigDecimal retailPrice;
        private String shareUrl;
        private Short sortOrder;
        private String unit;
        private Date updateTime;
    }

}
